From e5a10c81691fb76bbb0b010a914e28efc088baf6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 8 May 1993 16:45:38 +0000 Subject: [PATCH] Don't add menu bar to minibuffer-only frames. --- lisp/menu-bar.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index a805999a086..5785a6cc4ae 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -194,9 +194,11 @@ and selects that window." ;;; (or (buffer-file-name) "")))))) ;; Give all existing frames a menu bar. +;; (Except for minibuffer-only frames.) (let ((frames (frame-list))) (while frames - (modify-frame-parameters (car frames) '((menu-bar-lines . 1))) + (or (eq 'only (cdr (assq 'minibuffer (frame-parameters (car frames))))) + (modify-frame-parameters (car frames) '((menu-bar-lines . 1)))) (setq frames (cdr frames)))) ;; Make frames created from now on have a menu bar. -- 2.30.2